package com.buba.system.service.impl;

import com.buba.system.pojo.Job;
import com.buba.system.service.JobService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("jobServiceImpl")
public class JobServiceImpl implements JobService {
    @DubboReference
    private JobService jobMapper;

    @Override
    public List<Job> selJob(String employeeId) {
        return jobMapper.selJob(employeeId);
    }

    @Override
    public List<Job> selJobAll() {
        return jobMapper.selJobAll();
    }

    @Override
    public Integer delJob(String employeeId) {
        return jobMapper.delJob(employeeId);
    }

    @Override
    public Integer delJobAll(List<String> list) {
        return jobMapper.delJobAll(list);
    }

    @Override
    public List<Job> selEmpTitle(String employeeId) {
        return jobMapper.selEmpTitle(employeeId);
    }

    @Override
    public Integer addJob( Map<String, Object> map) {
        return jobMapper.addJob(map);
    }

    @Override
    public Integer addJobByName(String jobTitle) {
        //添加
        jobMapper.addJobByName(jobTitle);
        Integer jobid=jobMapper.selJobByjobTitle(jobTitle);

        return jobid ;
    }

    @Override
    public Integer delJobAlll(List<String> list) {
        return jobMapper.delJobAlll(list);
    }

    @Override
    public Integer delMenuAll(List<String> list) {
        return jobMapper.delMenuAll(list);
    }

    @Override
    public Integer delJobEmpAll(List<String> list) {
        return jobMapper.delJobEmpAll(list);
    }

    @Override
    public Integer selJobByjobTitle(String jobTitle) {
        return null;
    }
}
